﻿
#ifndef __TMASTER_FILE_H__
#define __TMASTER_FILE_H__


#include <string>
#include <map>
#include "../CommonDef.h"

dn_namespace_beg



#define MAX_DIR_STR_SIZE 4096


enum BaseDir 
{
	Data,
	Res,
	//-----------
	DataDir_Beg,
	EXD,
	DataDir_End,

	//----------
	ResDir_Beg,

	ResDir_End,
};



class FileSys
{
public:
	FileSys();
	~FileSys();

	static		FileSys& Instance();

	std::string GetAppRootDir();

	std::string IntegrateFilePath(BaseDir eBDir,const std::string& RelativePath  );

public:
	std::map<BaseDir, std::string>	DataDir;

private:
	static FileSys* _inst;

};



dn_namespace_end

#endif

//empty line for linux

